<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<title>抖音管理 </title>
<@fm.header />
<script type="text/javascript" src="/resources/js/common.js"></script>
<script type="text/javascript" src="/resources/js/douying/actionConfig.js"></script>
</head>
<body class="cmp-list-body">

<div id="tb" style="padding:3px">
	<span>shortId</span>
	<input id="nshortId" class="easyui-textbox" style="width: 155px;"/>
	<span>视频关键字</span>
	<input id="nkeyword" class="easyui-textbox" style="width: 155px;"/>
    <a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="doSearch();">查询</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="doAdd();">新增</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="doEdit();">修改</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="doDel();">删除</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="doDetail();">查看详情步骤</a>
</div>
<table id="tt" title="抖音增量配置" toolbar="#tb" rownumbers="true" idField="id" 
	singleSelect="false" pagination="true" fitColumns="true" pageSize="15" pageList="[15,30,60,80,100]">  
    <thead>
        <tr>
            <th align="center" width="8%" field="id">actionId</th>
		    <th align="center" width="12%" field="douyinShortId">抖音shortId</th>
		    <th align="center" width="8%" field="doNum">执行次数</th>
		    <th align="center" width="10%" field="videoKeyword">视频关键字</th>
		    <th align="center" width="10%" field="douyinUid">抖音uid</th>
		    <th align="center" width="12%" field="awemeId">视频id</th>
		    <th align="center" width="12%" field="createDate">创建时间</th>
		    <th align="center" width="12%" field="modifyDate">修改时间</th>
        </tr>
    </thead>   
</table>
<div id="addWin" class="easyui-window" title="抖音刷量新增" closed="true" collapsible="false" minimizable="false"  maximizable="false" style="width:500px;height:450px"   
        data-options="iconCls:'icon-save',modal:true">
     <div fit="true">
        <form id="addForm" method="post" enctype="multipart/form-data">
            <input type="hidden" id="idId"  name="id" />   
            <table>
                <tr>
                     <td align="left">抖音shortId</td>
                     <td><input id="douyinShortId" class="easyui-validatebox" data-options="required:true" name="douyinShortId" style="width:400px"></input></td>
                </tr>
                <tr>
                    <td align="left">执行次数</td>
                     <td><input id="doNum" class="easyui-validatebox" data-options="required:true" name="doNum" style="width:400px"  onkeyup="value=value.replace(/[^\d]/g,'')" placeholder="请输入整数"></input></td>
                </tr>
                <tr>
                    <td align="left">视频关键词</td>
                     <td><input id="videoKeyword" class="easyui-validatebox" data-options="required:true" name="videoKeyword" style="width:400px"></input></td>
                </tr>
                 <tr>
                    <td align="left">抖音uid</td>
                     <td><input id="douyinUid" class="easyui-validatebox"  name="douyinUid" style="width:400px"></input></td>
                </tr>
                <tr>
                    <td align="left">视频id</td>
                     <td><input id="awemeId" class="easyui-validatebox"  name="awemeId" style="width:400px"></input></td>
                </tr>
           </table>
        </form>
        <div style="padding: 25px; text-align: center;">
            <a href="#" class="easyui-linkbutton" onclick="cancel();">取消</a>
            <a href="#" class="easyui-linkbutton"  onclick="save();">保存</a> 
        </div>
    </div>
</div>

<div id="selectWin" title="步骤详情" class="easyui-window" closed="true" collapsible="false" 
minimizable="false"  maximizable="false"  style="width:720px;height:530px">
    <div fit="true" class="easyui-layout"  style="overflow:scroll">
         <table id="stepTable" class="easyui-datagrid" fitColumns="true" rownumbers="true" 
         singleSelect="false" toolbar="#tb2" pagination="true" pageSize="15" pageList="[15,30,60,80,100]" >     
             <thead>
                 <tr>
                    <th data-options="field:'id',checkbox:true"></th>
                    <th align="left" width="8%" field="seq">步骤序号</th>
                    <th align="left" width="15%" field="stepName">步骤名称</th>
                    <th align="left" width="8%" field="delayTime">延迟时间</th>
                    <th align="left" width="8%" field="delayRand">随机延迟时间</th>
                    <th align="left" width="8%" field="total">总量</th>
                    <th align="left" width="8%" field="countMin">次数最小值</th>
                    <th align="left" width="8%" field="countMax">次数最大值</th>
                    <th align="left" width="8%" field="hasNum">含有数</th>
                    <th align="left" width="8%" field="status" formatter="formatStatus">状态</th>
                    <th align="left" width="12%" field="modifyDate">修改时间</th>
                 </tr>
             </thead>   
         </table>      
    </div>
</div>

<div id="tb2" style="padding:3px">
    <span>步骤名称:</span>    
    <input class="easyui-validatebox" style="width:100px" type="text" id="stepName" name="stepName" ></input>
    <a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="searchStep();">查询</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="toAddStep();">新增</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="toEditStep();">修改</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="deleteStep();">删除</a>
    <input id="actionId" type="hidden"/>
</div>

<div id="addStepWin" class="easyui-window" title="步骤|新增修改" closed="true" collapsible="false" minimizable="false"  maximizable="false" style="width:500px;height:450px"   
        data-options="iconCls:'icon-save',modal:true">
     <div fit="true">
        <form id="addStepForm"  method="post" enctype="multipart/form-data">
            <input type="hidden" id="stepActionId" name="actionId"/>   
            <input id="stepId", name="id" type="hidden">
            <table>
                <tr>
                     <td align="left">步骤</td>
                     <td>
                     <select class="easyui-combobox" id="stepNum" name="stepNum" panelHeight="auto" style="width:200px">
                        <option value="6" selected>根据抖音号查找uid</option>
                        <option value="8" >获取抖音用户发表的作品列表</option>
                        <option value="7" >关注用户</option>
                        <option value="9" >点赞</option>
                        <option value="10" >发表评论</option>
                        <option value="26" >视频播放量</option>
                        <option value="27" >分享</option>
                        <option value="25" >提交个人视频日志</option>
                     </select>
                     </td>
                </tr>
                <tr>
                     <td align="left">执行步骤顺序</td>
                     <td><input id="seq" class="easyui-validatebox" data-options="required:true"  name="seq" style="width:300px" onkeyup="this.value=this.value.replace(/[^\-?\d.]/g,'')" placeholder="请输入整数"></input></td>
                </tr>   
                <tr>
                     <td align="left">延迟时间</td>
                     <td><input id="delayTime" class="easyui-validatebox" name="delayTime" style="width:300px" onkeyup="this.value=this.value.replace(/[^\-?\d.]/g,'')" placeholder="请输入整数"></input></td>
                </tr>
                <tr>
                     <td align="left">延迟时间随机</td>
                     <td><input id="delayRand" class="easyui-validatebox" name="delayRand" style="width:300px" onkeyup="this.value=this.value.replace(/[^\-?\d.]/g,'')" placeholder="请输入整数"></input></td>
                </tr>
                 <tr>
                     <td align="left">总量</td>
                     <td><input id="total" class="easyui-validatebox"  name="total" style="width:300px" onkeyup="this.value=this.value.replace(/[^\-?\d.]/g,'')" placeholder="请输入整数"></input></td>
                </tr>
                 <tr>
                     <td align="left">执行次数最小</td>
                     <td><input id="countMin" class="easyui-validatebox"  name="countMin" style="width:300px" onkeyup="this.value=this.value.replace(/[^\-?\d.]/g,'')" placeholder="请输入整数"></input></td>
                </tr>
                <tr>
                     <td align="left">执行次数最大</td>
                     <td><input id="countMax" class="easyui-validatebox"  name="countMax" style="width:300px" onkeyup="this.value=this.value.replace(/[^\-?\d.]/g,'')" placeholder="请输入整数"></input></td>
                </tr>
                <tr>
                     <td align="left">含有数</td>
                     <td><input id="hasNum" class="easyui-validatebox" name="hasNum" style="width:300px" onkeyup="this.value=this.value.replace(/[^\-?\d.]/g,'')" placeholder="请输入整数"></input></td>
                </tr>
                <tr>
                     <td align="left">状态</td>
                     <td>
                     <select class="easyui-combobox" id="status" name="status" panelHeight="auto" style="width:155px">
                        <option value="1" selected>启用</option>
                        <option value="0" >关闭</option>
                     </select>
                     </td>
                </tr>   
           </table>
        </form>
        <div style="padding: 25px; text-align: center;">
            <a href="#" class="easyui-linkbutton" onclick="cancelStep();">取消</a>
            <a href="#" class="easyui-linkbutton"  onclick="saveStep();">保存</a> 
        </div>
    </div>
</div>
</body>
</html>